@extends('admin.master')

@section('css')
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <style>

        .file-input {
            margin: 10px 50px;
            position: relative;
            left: 46px;
        }

        .file-caption {
            margin-top: 5px;
            height: 36px;
        }
        .form-inline {
            margin-bottom: 20px;
        }

        .form-inline label {
            font-weight: bold;
            margin-right: 10px;
        }
    </style>
@stop


@section('content')
<div style="padding: 100px 100px 10px;">
@foreach($details as $data)
    <form class="bs-example bs-example-form" action="{{route('goods.updates')}}"
      method="POST" style="width:80%;margin:0 auto;" role="form">
        <div class="input-group">
            <span class="input-group-addon">名称</span>
            <input type="text" name="name" class="form-control" placeholder="{{$data->name}}">
        </div>
        <div class="input-group">
            <span class="input-group-addon">价格</span>
            <input type="text" name="price" class="form-control" placeholder="{{$data->cost}}">
        </div>
        <div class="input-group">
            <span class="input-group-addon">描述</span>
            <input type="text" name="descript" class="form-control" placeholder="{{$data->descript}}">
        </div>
        <div class="input-group">
            <span class="input-group-addon">数量</span>
            <input type="text" name="num" class="form-control" placeholder="{{$data->num}}">
        </div>
        <input type="hidden" name="id" value="{{$data->id}}">
        <div class="input-group">
            <span class="input-group-addon">提交</span>
            <input type="submit" class="form-control" value="确认修改">
        </div>
        
    </form>
@endforeach
</div>

@stop
@section('javascript')
    <script>
        $('document').ready(function () {
            $('.toggleswitch').bootstrapToggle();
        });
    </script>
    
    <script src="/js/tinymce.min.js"></script>
    <script src="/js/voyager_tinymce.js"></script>
@stop